import axios from '@/utils/axios.js'

// 获取权限 -  -- type:list、tree
export const getRights = type =>
  axios({
    method: 'GET',
    url: `rights/${type}`
  })
